<!DOCTYPE html>
<%@ page errorPage="error/Error.jsp" contentType="text/html;charset=UTF-8" import="com.mmp.common.util.*,com.mmp.main.util.*,com.mmp.main.entity.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<% 
	JobOrder jobOrderInfo = (JobOrder)request.getAttribute(Default.JOB_ORDER_INFO_ATTR_NAME);
	if(jobOrderInfo == null)
          throw new Exception("لم يتم تعيين أمر عمل لإتمام العملية عليه");
	   
	String jobOrderNo  = Common.getDisplayString(jobOrderInfo.getJobOrderNo(),"",true);
	String jobOrderDate  = DateUtil.getDateString(jobOrderInfo.getJobOrderDate());
	String damageDescription  = Common.getDisplayString(jobOrderInfo.getDamageDescription(),"",true);
	String damageDate  = DateUtil.getDateString(jobOrderInfo.getDamageDate());

%>
</head>
<body>
<table class="layout_grid">
  <tr>
    <td  class="side_label_middle">رقم امر العمل : </td>
    <td><label id="jobOrderNo"></label></td>
  </tr>
  <tr>
    <td  class="side_label_middle">تاريخ امر العمل : </td>
    <td><label id="jobOrderDate"></label>
        <input type="text" id="joborder_date" name="joborder_date" class="caldr" value="<%=jobOrderDate%>" style="display:none">
    </td>
    
  </tr>
  <tr>
    <td  class="side_label_middle">وصف العطل : </td>
    <td><label id="damageDescription"></label></td>
  </tr>
  <tr>
    <td  class="side_label_middle">تاريخ العطل : </td>
    <td><label id="damageDate"></label></td>
  </tr>
</table>
<script>
appendIdElement("jobOrderId","<%=jobOrderInfo.getId()%>");
setInnerHTML("jobOrderNo","<%=jobOrderNo%>");
setInnerHTML("jobOrderDate","<%=jobOrderDate%>");
setInnerHTML("damageDescription","<%=damageDescription%>");
setInnerHTML("damageDate","<%=damageDate%>");
</script>
</body>


</html>
